home *** CD-ROM | disk | FTP | other *** search
/ Freelog 121 / FreelogMagazineJuilletAout2014-No121.iso / Outils / Adobe-Air / adobe-air_13.exe / [0] / setup.swf / scripts / _globalStyle.as < prev    next >
Text File  |  2014-03-27  |  4KB  |  116 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.HaloBorder;
  5.    import mx.skins.halo.HaloFocusRect;
  6.    import mx.styles.CSSStyleDeclaration;
  7.    import mx.styles.StyleManager;
  8.    
  9.    public class _globalStyle
  10.    {
  11.        
  12.       
  13.       public function _globalStyle()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       public static function init(param1:IFlexModuleFactory) : void
  19.       {
  20.          var fbs:IFlexModuleFactory = param1;
  21.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global");
  22.          if(!style)
  23.          {
  24.             style = new CSSStyleDeclaration();
  25.             StyleManager.setStyleDeclaration("global",style,false);
  26.          }
  27.          if(style.defaultFactory == null)
  28.          {
  29.             style.defaultFactory = function():void
  30.             {
  31.                this.fontWeight = "normal";
  32.                this.modalTransparencyBlur = 3;
  33.                this.verticalGridLineColor = 14015965;
  34.                this.borderStyle = "inset";
  35.                this.buttonColor = 7305079;
  36.                this.borderCapColor = 9542041;
  37.                this.textAlign = "left";
  38.                this.disabledIconColor = 10066329;
  39.                this.stroked = false;
  40.                this.fillColors = [16777215,13421772,16777215,15658734];
  41.                this.fontStyle = "normal";
  42.                this.borderSides = "left top right bottom";
  43.                this.borderThickness = 1;
  44.                this.modalTransparencyDuration = 100;
  45.                this.useRollOver = true;
  46.                this.strokeWidth = 1;
  47.                this.filled = true;
  48.                this.borderColor = 12040892;
  49.                this.horizontalGridLines = false;
  50.                this.horizontalGridLineColor = 16250871;
  51.                this.shadowCapColor = 14015965;
  52.                this.fontGridFitType = "pixel";
  53.                this.horizontalAlign = "left";
  54.                this.modalTransparencyColor = 14540253;
  55.                this.disabledColor = 11187123;
  56.                this.borderSkin = HaloBorder;
  57.                this.dropShadowColor = 0;
  58.                this.paddingBottom = 0;
  59.                this.indentation = 17;
  60.                this.version = "3.0.0";
  61.                this.fontThickness = 0;
  62.                this.verticalGridLines = true;
  63.                this.embedFonts = false;
  64.                this.fontSharpness = 0;
  65.                this.shadowDirection = "center";
  66.                this.textDecoration = "none";
  67.                this.selectionDuration = 250;
  68.                this.bevel = true;
  69.                this.fillColor = 16777215;
  70.                this.focusBlendMode = "normal";
  71.                this.dropShadowEnabled = false;
  72.                this.textRollOverColor = 2831164;
  73.                this.textIndent = 0;
  74.                this.fontSize = 10;
  75.                this.openDuration = 250;
  76.                this.closeDuration = 250;
  77.                this.kerning = false;
  78.                this.paddingTop = 0;
  79.                this.highlightAlphas = [0.3,0];
  80.                this.cornerRadius = 0;
  81.                this.horizontalGap = 8;
  82.                this.textSelectedColor = 2831164;
  83.                this.paddingLeft = 0;
  84.                this.modalTransparency = 0.5;
  85.                this.roundedBottomCorners = true;
  86.                this.repeatDelay = 500;
  87.                this.selectionDisabledColor = 14540253;
  88.                this.fontAntiAliasType = "advanced";
  89.                this.focusSkin = HaloFocusRect;
  90.                this.verticalGap = 6;
  91.                this.leading = 2;
  92.                this.shadowColor = 15658734;
  93.                this.backgroundAlpha = 1;
  94.                this.iconColor = 1118481;
  95.                this.focusAlpha = 0.4;
  96.                this.borderAlpha = 1;
  97.                this.focusThickness = 2;
  98.                this.themeColor = 40447;
  99.                this.backgroundSize = "auto";
  100.                this.indicatorGap = 14;
  101.                this.letterSpacing = 0;
  102.                this.fontFamily = "Verdana";
  103.                this.fillAlphas = [0.6,0.4,0.75,0.65];
  104.                this.color = 734012;
  105.                this.paddingRight = 0;
  106.                this.errorColor = 16711680;
  107.                this.verticalAlign = "top";
  108.                this.focusRoundedCorners = "tl tr bl br";
  109.                this.shadowDistance = 2;
  110.                this.repeatInterval = 35;
  111.             };
  112.          }
  113.       }
  114.    }
  115. }
  116.